/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.cput.ac.principles.isp.ispviolation.impl;

import za.cput.ac.principles.isp.ispviolation.SystemInter;

/**
 *
 * @author Ilyaas Khatib
 */
public class SystemnWriter implements SystemInter{
    private String data;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
    @Override
    public void write() {
        System.out.println("Only method used from Interface");
    }

    @Override
    public void read() {
        System.out.println("Violates Principle");
    }
    public static void main(String[] args) {
        SystemnWriter sw = new SystemnWriter();
        sw.write();
        sw.read();
    }
}
